<html>
<head><meta charset="utf-8"><title>tidy: everything is a binary file · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html">tidy: everything is a binary file</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="157108945"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157108945" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157108945">(Jan 29 2019 at 14:35)</a>:</h4>
<p>Has anyone else had the issue that running tidy locally errors and lists almost every file as being a "binary checked into source"?</p>



<a name="157109071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157109071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157109071">(Jan 29 2019 at 14:36)</a>:</h4>
<p>to me: only one text file I had copied, not every file though</p>



<a name="157109121"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157109121" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157109121">(Jan 29 2019 at 14:37)</a>:</h4>
<p>I'm not sure what it is, I haven't done anything strange to the permissions and it seems to happen with fresh clones.</p>



<a name="157109201"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157109201" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157109201">(Jan 29 2019 at 14:38)</a>:</h4>
<p>are these files somehow +x ? I think that's what tidy is checking</p>



<a name="157109218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157109218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157109218">(Jan 29 2019 at 14:38)</a>:</h4>
<p>Yeah, looks like they have it set on the group.</p>



<a name="157109225"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157109225" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157109225">(Jan 29 2019 at 14:38)</a>:</h4>
<p>how they happened to have this is more of a mystery</p>



<a name="157111602"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%3A%20everything%20is%20a%20binary%20file/near/157111602" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.3A.20everything.20is.20a.20binary.20file.html#157111602">(Jan 29 2019 at 15:12)</a>:</h4>
<p>For anyone else that has this issue, these commands ended up getting tidy to pass for me:</p>
<p><strong>Remove group executable permission from any files with group executable permission</strong></p>
<div class="codehilite"><pre><span></span>find . -type f -regextype posix-extended -regex &#39;.*/(Dockerfile|Makefile|patch-toolchain|compiletest-ignore-dir|config|README|non-utf8|qemu-bare-bones-rcS|vexpress_config|.*\.(inc|bin|s|svg|css|md|rs|toml|gitignore|1|stderr|stdout|fixed|txt|gitattributes|c|bat|woff|editorconfig|config|patch|json|foo|template|cpp|lock|rc|rs~rust-lang_master))&#39; -perm &#39;-g=x&#39; -exec chmod g-x {} \;
</pre></div>


<p><strong>Add user read/write permission to any files with no user permissions</strong></p>
<div class="codehilite"><pre><span></span>find . -type f -regextype posix-extended -regex &#39;.*/(Dockerfile|Makefile|patch-toolchain|compiletest-ignore-dir|config|README|non-utf8|qemu-bare-bones-rcS|vexpress_config|.*\.(inc|bin|s|svg|css|md|rs|toml|gitignore|1|stderr|stdout|fixed|txt|gitattributes|c|bat|woff|editorconfig|config|patch|json|foo|template|cpp|lock))&#39; -user $(whoami) -perm &#39;-000&#39; -exec chmod u+rw {} \;
</pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>